﻿using System.Windows;
using JustinAngel.Neurons.Framework.Helpers;

namespace JustinAngel.Neurons.Framework
{
    public class DialogService : IDialogService
    {
        public MessageBoxResult ShowMessageBoxReturnResult(string Text, string Header, MessageBoxButton Buttons)
        {
            return MessageBox.Show(Text, Header, Buttons);
        }

        public bool ShowOkCancel(string Header, string Text)
        {
            return MessageBox.Show(Text, Header, MessageBoxButton.OKCancel) == MessageBoxResult.OK;
        }

        public void ShowMessageBox(string Text, string Header, MessageBoxButton Buttons)
        {
            DispatcherHelper.BeginInvokeOnUIThread(() => MessageBox.Show(Text, Header, Buttons));
        }
    }
}
